package cn.edu.zafu.bigdata.YinMingyan.chapter06;

public class ScoreChecker {
    public static void checkScore(int score) throws InvalidScoreException {
        if (score < 0 || score > 100) {
            throw new InvalidScoreException("分数无效: " + score + "。分数必须在0到100之间。");
        } else {
            System.out.println("分数有效: " + score);
        }
    }
}
